//
//  MFWUserInfo.h
//  MFWSdk
//
//  Created by Song Xiaofeng on 13-7-24.
//  Copyright (c) 2013年 Mafengwo Inc. All rights reserved.
//

#import <Foundation/Foundation.h>

@class MFWJson;
@interface MFWUserInfo : NSObject<NSCoding>

@property(nonatomic, copy)NSString *uid;
@property(nonatomic, copy)NSString *email;
@property(nonatomic, copy)NSString *nickName;
@property(nonatomic, copy)NSString *logoUrl;
@property(nonatomic, copy)NSString *ucity;//常住城市
@property(nonatomic, copy)NSString *uIntro;//签名
@property(nonatomic, copy)NSString *m_bg_img;
@property(nonatomic, copy)NSString *pwd;//用户登录的密码
@property(nonatomic)NSUInteger level;
@property(nonatomic)NSUInteger gender;
@property(nonatomic)NSUInteger un_read_chat_count;
@property(nonatomic, copy)MFWJson* extra;

- (BOOL)updateInfoFromUserJsonData:(MFWJson*)jsonData;

- (BOOL)synchronizeToDisk;

- (BOOL)clear;

+ (MFWUserInfo*)loadFromDisk;
@end
